﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Text.RegularExpressions;
using System.Xml;
using YLW.Common.Core.Model;
using YLW.Plat.Jhfw.HL7V3.V3Message;
using YLW.Plat.Jhfw.HL7V3.XSDModels.PRPA_IN201306UV02;
using YLW.Plat.Jhfw.HL7V3.XSDModels.PRPM_IN401030UV01;
using YLW.Plat.Jhfw.HL7V3.XSDModels.PRPM_IN406010UV01;
using YLW.Plat.Jhfw.HL7V3.XSDModels.PRPM_IN406110UV01;
using YLW.Plat.Jhfw.Model.JhfwCydj;
using YLW.Plat.Jhfw.Model.JhfwHypb;
using YLW.Plat.Jhfw.Model.JhfwHzgl;
using YLW.Plat.Jhfw.Model.JhfwJcsqd;
using YLW.Plat.Jhfw.Model.JhfwJcyy;
using YLW.Plat.Jhfw.Model.JhfwJysqd;
using YLW.Plat.Jhfw.Model.JhfwKsgl;
using YLW.Plat.Jhfw.Model.JhfwMzgh;
using YLW.Plat.Jhfw.Model.JhfwMzyy;
using YLW.Plat.Jhfw.Model.JhfwRygl;
using YLW.Plat.Jhfw.Model.JhfwSspb;
using YLW.Plat.Jhfw.Model.JhfwSssqd;
using YLW.Plat.Jhfw.Model.JhfwSxsqd;
using YLW.Plat.Jhfw.Model.JhfwYzbc;
using YLW.Plat.Jhfw.Model.JhfwZydj;
using YLW.Plat.Jhfw.Model.JhfwZyzk;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace YLW.Plat.Jhfw.HL7V3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //string api_param_Str = "\"{\\r\\n  \\\"page\\\": 0,\\r\\n  \\\"percount\\\": 100,\\r\\n  \\\"hoscode\\\": \\\"1250101\\\",\\r\\n  \\\"deptid\\\": \\\"3040120401\\\"\\r\\n}\"";
            ////去除前后" 去除\r\n 替换\"为"
            //api_param_Str=api_param_Str.Replace("\"{", "{").Replace("}\"", "}");
            //api_param_Str = api_param_Str.Replace("\\r\\n", "");
            //api_param_Str = api_param_Str.Replace("\\\"", "\"");

            //Console.WriteLine(api_param_Str);

            //string id_extension = Guid.NewGuid().ToString();
            //string sender_name = "sender_name";
            //string receiver_name = "receiver_name";

            //#region 通用新增修改返回
            //string success_Str = "{\"data\":null,\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //ApiBaseModel jsonDataOk = JsonConvert.DeserializeObject<AddJhfwKsglOut>(success_Str);
            //string xmlMessageOk = V3_MCCI_IN000002UV01.MCCI_ResponseMessage(jsonDataOk, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessageOk);
            //Console.WriteLine();

            //string fail_Str = "{\"data\":null,\"subcode\":\"fail\",\"submsg\":\"未知异常.\"}";
            //ApiBaseModel jsonDataErr = JsonConvert.DeserializeObject<AddJhfwKsglOut>(fail_Str);
            //string xmlMessageErr = V3_MCCI_IN000002UV01.MCCI_ResponseMessage(jsonDataErr, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessageErr);
            //Console.WriteLine();
            //#endregion

            //#region 第2部分：个人信息注册、查询服务；
            ////个人信息注册服务
            //string PatientInfoRegister_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"psex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"prace\":\"1\",\"poccu\":\"1\",\"pmstatus\":\"1\",\"pphone\":\"1\",\"paddress\":\"1\",\"addr_province\":\"1\",\"addr_city\":\"1\",\"addr_area\":\"1\",\"addr_town\":\"1\",\"addr_village\":\"1\",\"addr_house\":\"1\",\"pzip\":\"1\",\"jzkh\":\"1\",\"service\":\"1\",\"unit\":\"1\",\"unit_phone\":\"1\",\"ktop\":\"1\",\"kin\":\"1\",\"kinphone\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwHzglIn addJhfwHzglIn_PatientInfoRegister = JsonConvert.DeserializeObject<AddJhfwHzglIn>(PatientInfoRegister_Str);
            //string xmlMessage_PatientInfoRegister = V3_PRPA_IN201311UV02.PatientInfoRegister(addJhfwHzglIn_PatientInfoRegister, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_PatientInfoRegister);
            //Console.WriteLine();

            ////个人信息更新服务
            //string PatientInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"psex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"prace\":\"1\",\"poccu\":\"1\",\"pmstatus\":\"1\",\"pphone\":\"1\",\"paddress\":\"1\",\"addr_province\":\"1\",\"addr_city\":\"1\",\"addr_area\":\"1\",\"addr_town\":\"1\",\"addr_village\":\"1\",\"addr_house\":\"1\",\"pzip\":\"1\",\"jzkh\":\"1\",\"service\":\"1\",\"unit\":\"1\",\"unit_phone\":\"1\",\"ktop\":\"1\",\"kin\":\"1\",\"kinphone\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwHzglIn addJhfwHzglIn_PatientInfoUpdate = JsonConvert.DeserializeObject<AddJhfwHzglIn>(PatientInfoUpdate_Str);
            //string xmlMessage_PatientInfoUpdate = V3_PRPA_IN201314UV02.PatientInfoUpdate(addJhfwHzglIn_PatientInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_PatientInfoUpdate);
            //Console.WriteLine();

            ////个人信息查询服务
            //string PatientInfoQuery_Str = "{\"page\":1,\"percount\":1,\"hoscode\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"psex\":\"1\",\"pcid\":\"1\",\"jzkh\":\"1\"}";
            //GetJhfwHzglListIn getJhfwHzglListIn_PatientInfoQuery = JsonConvert.DeserializeObject<GetJhfwHzglListIn>(PatientInfoQuery_Str);
            //string xmlMessage_PatientInfoQuery = V3_PRPA_IN201305UV02.PatientInfoQuery(getJhfwHzglListIn_PatientInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_PatientInfoQuery);
            //Console.WriteLine();

            ////个人信息查询服务-响应
            //string PatientInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"psex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"prace\":\"1\",\"poccu\":\"1\",\"pmstatus\":\"1\",\"pphone\":\"1\",\"paddress\":\"1\",\"addr_province\":\"1\",\"addr_city\":\"1\",\"addr_area\":\"1\",\"addr_town\":\"1\",\"addr_village\":\"1\",\"addr_house\":\"1\",\"pzip\":\"1\",\"jzkh\":\"1\",\"service\":\"1\",\"unit\":\"1\",\"unit_phone\":\"1\",\"ktop\":\"1\",\"kin\":\"1\",\"kinphone\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"dotype\":\"1\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"psex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"prace\":\"1\",\"poccu\":\"1\",\"pmstatus\":\"1\",\"pphone\":\"1\",\"paddress\":\"1\",\"addr_province\":\"1\",\"addr_city\":\"1\",\"addr_area\":\"1\",\"addr_town\":\"1\",\"addr_village\":\"1\",\"addr_house\":\"1\",\"pzip\":\"1\",\"jzkh\":\"1\",\"service\":\"1\",\"unit\":\"1\",\"unit_phone\":\"1\",\"ktop\":\"1\",\"kin\":\"1\",\"kinphone\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwHzglListOut getJhfwHzglListOut_PatientInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwHzglListOut>(PatientInfoQuery_Response_Str);
            //string xmlMessage_PatientInfoQuery_Response = V3_PRPA_IN201306UV02.PatientInfoQuery_Response(getJhfwHzglListOut_PatientInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_PatientInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第3部分：医疗卫生机构注册、查询服务；-包含解密
            ////医疗卫生机构（科室）信息注册服务
            //string addJhfwKsglIn_Str = "{\"bm\":\"科室别名\",\"deptfun\":\"20\",\"deptid\":\"hlks-1001\",\"deptname\":\"护理科室\",\"depttelephone\":\"13000000000\",\"forward\":\"\",\"hoscode\":\"QJ00101\",\"in_date\":\"2025-04-01 08:42:56\",\"in_empid\":\"10351\",\"jssj\":\"\",\"kssj\":\"\",\"lxr\":\"联系人\",\"lyxt\":\"来源系统\",\"onesubject\":\"一级学科\",\"py\":\"hlks\",\"restrictrdn\":\"工作地址\",\"secondsubject\":\"二级学科\",\"sjly\":\"HIS\",\"sort\":\"10\",\"stay\":\"O\",\"useflag\":\"1\",\"dotype\":\"ADD\"}";
            //AddJhfwKsglIn addJhfwKsglIn = JsonConvert.DeserializeObject<AddJhfwKsglIn>(addJhfwKsglIn_Str);
            //string xmlMessage_addJhfwKsglIn = V3_PRPM_IN401030UV01.OrganizationInfoRegister(addJhfwKsglIn, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_addJhfwKsglIn);
            //Console.WriteLine();


            ////解析
            //PRPM_IN401030UV01 xmlModel_addJhfwKsglIn = HL7V3Helper.DeserializeToModel<PRPM_IN401030UV01>(xmlMessage_addJhfwKsglIn);
            //AddJhfwKsglIn inModel_addJhfwKsglIn = HL7V3Helper.ConvertXmlExtensionToModel<AddJhfwKsglIn>(xmlMessage_addJhfwKsglIn);
            //Console.WriteLine(JsonConvert.SerializeObject(inModel_addJhfwKsglIn));

            ////解析标准无拓展xml
            //string xmlMessage_addJhfwKsglIn1100 = @"<?xml version=""1.0"" encoding=""UTF-8""?><PRPM_IN401030UV01 xmlns=""https://www.chiss.org.cn"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
            //                ITSVersion=""XML_1.0"" xsi:schemaLocation=""https://www.chiss.org.cn
            //                https://www.chiss.org.cn/HL7V3Message/multicacheschemas/PRPM_IN401030UV01.xsd""><id root=""2.16.156.10011.2.5.1.1"" extension=""8D73520B-D489-4B70-8F4B-7B5C2D7961B5""/><creationTime value=""20130116112855""/><interactionId root=""2.16.156.10011.2.5.1.2"" extension=""PRPM_IN401030UV01""/><processingCode code=""P""/><processingModeCode/><acceptAckCode code=""AL""/><receiver typeCode=""RCV""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension=""111""/></id></device></receiver><sender typeCode=""SND""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension=""111""/></id></device></sender><controlActProcess classCode=""CACT"" moodCode=""EVN""><subject typeCode=""SUBJ""><registrationRequest classCode=""REG"" moodCode=""RQO""><statusCode code=""active""/><subject1 typeCode=""SBJ""><assignedEntity classCode=""ASSIGNED ""><id><item root=""2.16.156.10011.1.26"" extension=""123901test""/></id><code code=""A03.01"" codeSystem=""2.16.156.10011.2.3.2.62"" codeSystemName=""医疗卫生
            //                                        机构业务科室分类与代码表""><displayName value=""呼吸内科专业""/></code><name xsi:type=""LIST_EN""><item><part value=""呼吸内科""/></item></name><addr xsi:type=""DSET_AD""><item><part value=""2号楼3楼""/></item></addr><telecom xsi:type=""DSET_TEL""><item value=""13897021787""/></telecom><statusCode code=""active""/><effectiveTime><low value=""20100101""/><high value=""20501231""/></effectiveTime><assignedPrincipalOrganization classCode=""ORG"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""内科""/></item></name><id><item root=""2.16.156.10011.1.26"" extension=""0234567890""/></id></assignedPrincipalOrganization></assignedEntity></subject1><author typeCode=""AUT""><assignedEntity classCode=""ASSIGNED""><id><item root=""2.16.156.10011.1.4"" extension=""120109197706015518""/></id><assignedPerson classCode=""PSN"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""李人事""/></item></name></assignedPerson><representedOrganization classCode=""ORG"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.1.26"" extension=""xxx12345-X""/></id><name xsi:type=""LIST_EN""><item><part value=""人事科""/></item></name><contactParty classCode=""CON""><contactPerson classCode=""PSN"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""王联系""/></item></name></contactPerson></contactParty></representedOrganization></assignedEntity></author></registrationRequest></subject></controlActProcess></PRPM_IN401030UV01>
            //            ";

            ////解析标准有拓展xml
            //string xmlMessage_addJhfwKsglIn1122 = @"<?xml version=""1.0"" encoding=""UTF-8""?><PRPM_IN401030UV01 xmlns=""https://www.chiss.org.cn"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
            //    ITSVersion=""XML_1.0"" xsi:schemaLocation=""https://www.chiss.org.cn
            //    https://www.chiss.org.cn/HL7V3Message/multicacheschemas/PRPM_IN401030UV01.xsd""><id root=""2.16.156.10011.2.5.1.1"" extension=""8D73520B-D489-4B70-8F4B-7B5C2D7961B5""/><creationTime value=""20130116112855""/><interactionId root=""2.16.156.10011.2.5.1.2"" extension=""PRPM_IN401030UV01""/><processingCode code=""P""/><processingModeCode/><acceptAckCode code=""AL""/><receiver typeCode=""RCV""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension=""111""/></id></device></receiver><sender typeCode=""SND""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension=""111""/></id></device></sender><controlActProcess classCode=""CACT"" moodCode=""EVN""><subject typeCode=""SUBJ""><registrationRequest classCode=""REG"" moodCode=""RQO""><statusCode code=""active""/><subject1 typeCode=""SBJ""><assignedEntity classCode=""ASSIGNED ""><id><item root=""2.16.156.10011.1.26"" extension=""123901test""/></id><code code=""A03.01"" codeSystem=""2.16.156.10011.2.3.2.62"" codeSystemName=""医疗卫生
            //                            机构业务科室分类与代码表""><displayName value=""呼吸内科专业""/></code><name xsi:type=""LIST_EN""><item><part value=""呼吸内科""/></item></name><addr xsi:type=""DSET_AD""><item><part value=""2号楼3楼""/></item></addr><telecom xsi:type=""DSET_TEL""><item value=""13897021787""/></telecom><statusCode code=""active""/><effectiveTime><low value=""20100101""/><high value=""20501231""/></effectiveTime><assignedPrincipalOrganization classCode=""ORG"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""内科""/></item></name><id><item root=""2.16.156.10011.1.26"" extension=""0234567890""/></id></assignedPrincipalOrganization></assignedEntity></subject1><author typeCode=""AUT""><assignedEntity classCode=""ASSIGNED""><id><item root=""2.16.156.10011.1.4"" extension=""120109197706015518""/></id><assignedPerson classCode=""PSN"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""李人事""/></item></name></assignedPerson><representedOrganization classCode=""ORG"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.1.26"" extension=""xxx12345-X""/></id><name xsi:type=""LIST_EN""><item><part value=""人事科""/></item></name><contactParty classCode=""CON""><contactPerson classCode=""PSN"" determinerCode=""INSTANCE""><name xsi:type=""LIST_EN""><item><part value=""王联系""/></item></name></contactPerson></contactParty></representedOrganization></assignedEntity></author><extension><dotype><value>ADD</value></dotype><sjly><value>1</value></sjly><lyxt><value>1</value></lyxt><hoscode><value>1</value></hoscode><deptid><value>1</value></deptid><deptname><value>1</value></deptname><bm><value>1</value></bm><py><value>1</value></py><stay><value>1</value></stay><deptfun><value>1</value></deptfun><onesubject><value>1</value></onesubject><secondsubject><value>1</value></secondsubject><sort><value>1</value></sort><restrictrdn><value>1</value></restrictrdn><lxr><value>1</value></lxr><depttelephone><value>1</value></depttelephone><forward><value>1</value></forward><kssj><value>1</value></kssj><jssj><value>1</value></jssj><useflag><value>1</value></useflag><in_empid><value>1</value></in_empid><in_date><value>1</value></in_date><xg_empid><value>1</value></xg_empid><xgsj><value>1</value></xgsj></extension></registrationRequest></subject></controlActProcess></PRPM_IN401030UV01>

            //";

            //bool hasExtension = HL7V3Helper.HasExtensionNode(xmlMessage_addJhfwKsglIn1100);
            //bool hasExtensionTwo = HL7V3Helper.HasExtensionNode(xmlMessage_addJhfwKsglIn1122);
            //Console.WriteLine(hasExtension);
            //Console.WriteLine(hasExtensionTwo);

            //PRPM_IN401030UV01 xmlModel_addJhfwKsglIn2 = HL7V3Helper.DeserializeToModel<PRPM_IN401030UV01>(xmlMessage_addJhfwKsglIn1122);
            //if (xmlModel_addJhfwKsglIn2.controlActProcess.subject.registrationRequest.extension != null)
            //{
            //    AddJhfwKsglIn inModel_addJhfwKsglIn2 = HL7V3Helper.ConvertXmlExtensionToModel<AddJhfwKsglIn>(xmlMessage_addJhfwKsglIn1122);
            //    Console.WriteLine(JsonConvert.SerializeObject(inModel_addJhfwKsglIn2));
            //}

            ////医疗卫生机构（科室）信息更新服务
            //string addJhfwKsglIn2_Str = "{\"bm\":\"科室别名\",\"deptfun\":\"20\",\"deptid\":\"hlks-1001\",\"deptname\":\"护理科室\",\"depttelephone\":\"13000000000\",\"forward\":\"\",\"hoscode\":\"QJ00101\",\"in_date\":\"2025-04-01 08:42:56\",\"in_empid\":\"10351\",\"jssj\":\"\",\"kssj\":\"\",\"lxr\":\"联系人\",\"lyxt\":\"来源系统\",\"onesubject\":\"一级学科\",\"py\":\"hlks\",\"restrictrdn\":\"工作地址\",\"secondsubject\":\"二级学科\",\"sjly\":\"HIS\",\"sort\":\"10\",\"stay\":\"O\",\"useflag\":\"1\",\"xgsj\":\"2025-04-01 10:12:56\",\"xg_empid\":\"10351\",\"dotype\":\"MOD\"}";
            //AddJhfwKsglIn addJhfwKsglIn2 = JsonConvert.DeserializeObject<AddJhfwKsglIn>(addJhfwKsglIn2_Str);
            //string xmlMessage_addJhfwKsglIn2 = V3_PRPM_IN403010UV01.OrganizationInfoUpdate(addJhfwKsglIn2, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_addJhfwKsglIn2);
            //Console.WriteLine();

            ////医疗卫生机构（科室）信息查询服务
            //string getJhfwKsglListIn_Str = "{\"page\": 1,\"percount\": 2,\"hoscode\": \"QJ00101\"}";
            //GetJhfwKsglListIn getJhfwKsglListIn = JsonConvert.DeserializeObject<GetJhfwKsglListIn>(getJhfwKsglListIn_Str);
            //string xmlMessage_getJhfwKsglListIn = V3_PRPM_IN406010UV01.OrganizationInfoQuery(getJhfwKsglListIn, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_getJhfwKsglListIn);
            //Console.WriteLine();

            ////解析
            //PRPM_IN406010UV01 xmlModel_GetJhfwKsglListIn = HL7V3Helper.DeserializeToModel<PRPM_IN406010UV01>(xmlMessage_getJhfwKsglListIn);
            //GetJhfwKsglListIn inModel_GetJhfwKsglListIn = HL7V3Helper.ConvertXmlExtensionToModel<GetJhfwKsglListIn>(xmlMessage_getJhfwKsglListIn);
            //Console.WriteLine(JsonConvert.SerializeObject(inModel_GetJhfwKsglListIn));

            ////解析标准无拓展xml
            //string xmlModel_GetJhfwKsglListIn1100 = @"<?xml version=""1.0"" encoding=""UTF-8""?><PRPM_IN406010UV01 xmlns=""https://www.chiss.org.cn"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
            //    ITSVersion=""XML_1.0"" xsi:schemaLocation=""https://www.chiss.org.cn
            //    https://www.chiss.org.cn/HL7V3Message/multicacheschemas/PRPM_IN406010UV01.xsd""><id root=""2.16.156.10011.2.5.1.1"" extension=""8D73520B-D489-4B70-8F4B-7B5C2D7961BQ""/><creationTime value=""20130116112855""/><interactionId root=""2.16.156.10011.2.5.1.2"" extension=""PRPM_IN406010UV01""/><processingCode code=""P""/><processingModeCode/><acceptAckCode code=""AL""/><receiver typeCode=""RCV""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension =""@111""/></id></device></receiver><sender typeCode=""SND""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension =""@222""/></id></device></sender><controlActProcess classCode=""CACT"" moodCode=""EVN""><queryByParameterPayload><statusCode code=""new""/><organizationID><value root=""2.16.156.10011.1.26"" extension=""123901""/></organizationID><organizationName><value><part value=""呼吸内科""/></value></organizationName><status><value code=""active""/></status></queryByParameterPayload></controlActProcess></PRPM_IN406010UV01>
            //";

            ////解析标准有拓展xml
            //string xmlModel_GetJhfwKsglListIn1122 = @"<?xml version=""1.0"" encoding=""UTF-8""?><PRPM_IN406010UV01 xmlns=""https://www.chiss.org.cn"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
            //    ITSVersion=""XML_1.0"" xsi:schemaLocation=""https://www.chiss.org.cn
            //    https://www.chiss.org.cn/HL7V3Message/multicacheschemas/PRPM_IN406010UV01.xsd""><id root=""2.16.156.10011.2.5.1.1"" extension=""8D73520B-D489-4B70-8F4B-7B5C2D7961BQ""/><creationTime value=""20130116112855""/><interactionId root=""2.16.156.10011.2.5.1.2"" extension=""PRPM_IN406010UV01""/><processingCode code=""P""/><processingModeCode/><acceptAckCode code=""AL""/><receiver typeCode=""RCV""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension =""@111""/></id></device></receiver><sender typeCode=""SND""><device classCode=""DEV"" determinerCode=""INSTANCE""><id><item root=""2.16.156.10011.2.5.1.3"" extension =""@222""/></id></device></sender><controlActProcess classCode=""CACT"" moodCode=""EVN""><queryByParameterPayload><statusCode code=""new""/><organizationID><value root=""2.16.156.10011.1.26"" extension=""123901""/></organizationID><organizationName><value><part value=""呼吸内科""/></value></organizationName><status><value code=""active""/></status><extension><page><value>1</value></page><percount><value>1</value></percount><hoscode><value>1</value></hoscode><deptid><value>1</value></deptid><deptname><value>1</value></deptname></extension></queryByParameterPayload></controlActProcess></PRPM_IN406010UV01>
            //";

            //PRPM_IN406010UV01 xmlModel_GetJhfwKsglListIn2 = HL7V3Helper.DeserializeToModel<PRPM_IN406010UV01>(xmlModel_GetJhfwKsglListIn1122);
            //if (xmlModel_GetJhfwKsglListIn2.controlActProcess.queryByParameterPayload.extension != null)
            //{
            //    GetJhfwKsglListIn inModel_GetJhfwKsglListIn2 = HL7V3Helper.ConvertXmlExtensionToModel<GetJhfwKsglListIn>(xmlModel_GetJhfwKsglListIn1122);
            //    Console.WriteLine(JsonConvert.SerializeObject(inModel_GetJhfwKsglListIn2));
            //}

            ////医疗卫生机构（科室）信息查询服务-响应
            //string getJhfwKsglListOut_Str = "{\"data\":[{\"bm\":null,\"deptfun\":\"30\",\"deptid\":\"042800\",\"deptname\":\"测试科室_002\",\"depttelephone\":null,\"forward\":\"102\",\"hoscode\":\"QJ00101\",\"in_date\":\"2024-07-05 08:42:56\",\"in_empid\":\"10351\",\"jssj\":\"\",\"kssj\":\"\",\"lxr\":null,\"lyxt\":\"99\",\"onesubject\":null,\"py\":\"CSKS_002\",\"restrictrdn\":\"PB08\",\"secondsubject\":null,\"sjly\":\"HIS\",\"sort\":\"10\",\"stay\":\"O\",\"useflag\":\"1\",\"xgsj\":\"2024-07-05 08:42:56\",\"xg_empid\":\"10351\"},{\"bm\":null,\"deptfun\":null,\"deptid\":\"0805-2\",\"deptname\":\"测试0805\",\"depttelephone\":null,\"forward\":\"0805-2\",\"hoscode\":\"QJ00101\",\"in_date\":\"2024-08-05 16:49:45\",\"in_empid\":\"100592\",\"jssj\":\"\",\"kssj\":\"\",\"lxr\":null,\"lyxt\":\"99\",\"onesubject\":null,\"py\":\"CS0805\",\"restrictrdn\":\"PB07\",\"secondsubject\":null,\"sjly\":\"HIS\",\"sort\":\"1162\",\"stay\":\"I\",\"useflag\":\"1\",\"xgsj\":\"2024-08-05 16:50:33\",\"xg_empid\":\"100592\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwKsglListOut getJhfwKsglListOut = JsonConvert.DeserializeObject<GetJhfwKsglListOut>(getJhfwKsglListOut_Str);
            //string xmlMessage_getJhfwKsglListOut = V3_PRPM_IN406110UV01.OrganizationInfoQuery_Response(getJhfwKsglListOut, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_getJhfwKsglListOut);
            //Console.WriteLine();

            //bool hasExtensionResponse = HL7V3Helper.HasExtensionNode(xmlMessage_getJhfwKsglListOut);
            //Console.WriteLine(hasExtensionResponse);

            ////解析查询列表返回extension
            //GetJhfwKsglListOut getJhfwKsglListOutData = new GetJhfwKsglListOut();

            //PRPM_IN406110UV01 xmlModel_PRPM_IN406110UV01 = HL7V3Helper.DeserializeToModel<PRPM_IN406110UV01>(xmlMessage_getJhfwKsglListOut);
            //if (xmlModel_PRPM_IN406110UV01 != null)
            //{
            //    getJhfwKsglListOutData.subcode = "success";
            //    getJhfwKsglListOutData.submsg = "执行成功";

            //    List<JhfwKsglInfo> jhfwKsglInfos = HL7V3Helper.ConvertXmlExtensionsToModels<JhfwKsglInfo>(xmlMessage_getJhfwKsglListOut);
            //    getJhfwKsglListOutData.data = jhfwKsglInfos;
            //}

            //Console.WriteLine(JsonConvert.SerializeObject(getJhfwKsglListOutData));
            //Console.WriteLine();
            //#endregion

            //#region 第4部分：医疗卫生人员注册、查询服务；
            ////医疗卫生人员信息注册服务
            //string ProviderInfoRegister_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"oaid\":\"1\",\"sex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"birthday\":\"1\",\"birthaddress\":\"1\",\"cellphone\":\"1\",\"netphone\":\"1\",\"py\":\"1\",\"title\":\"1\",\"ismedgroup\":\"1\",\"medgroup\":\"1\",\"empintroduction\":\"1\",\"deptid\":\"1\",\"rzsj\":\"1\",\"lzsj\":\"1\",\"remark\":\"1\",\"ybysdm\":\"1\",\"ybhsdm\":\"1\",\"certificateno\":\"1\",\"technicianno\":\"1\",\"zydd\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwRyglIn addJhfwRyglIn_ProviderInfoRegister = JsonConvert.DeserializeObject<AddJhfwRyglIn>(ProviderInfoRegister_Str);
            //string xmlMessage_ProviderInfoRegister = V3_PRPM_IN301010UV01.ProviderInfoRegister(addJhfwRyglIn_ProviderInfoRegister, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ProviderInfoRegister);
            //Console.WriteLine();

            ////医疗卫生人员信息更新服务
            //string ProviderInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"oaid\":\"1\",\"sex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"birthday\":\"1\",\"birthaddress\":\"1\",\"cellphone\":\"1\",\"netphone\":\"1\",\"py\":\"1\",\"title\":\"1\",\"ismedgroup\":\"1\",\"medgroup\":\"1\",\"empintroduction\":\"1\",\"deptid\":\"1\",\"rzsj\":\"1\",\"lzsj\":\"1\",\"remark\":\"1\",\"ybysdm\":\"1\",\"ybhsdm\":\"1\",\"certificateno\":\"1\",\"technicianno\":\"1\",\"zydd\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwRyglIn addJhfwRyglIn_ProviderInfoUpdate = JsonConvert.DeserializeObject<AddJhfwRyglIn>(ProviderInfoUpdate_Str);
            //string xmlMessage_ProviderInfoUpdate = V3_PRPM_IN303010UV01.ProviderInfoUpdate(addJhfwRyglIn_ProviderInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ProviderInfoUpdate);
            //Console.WriteLine();

            ////医疗卫生人员信息查询服务
            //string ProviderInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sex\":\"1\",\"pcid\":\"1\",\"birthday_low\":\"1\",\"birthday_high\":\"1\"}";
            //GetJhfwRyglListIn getJhfwRyglListIn_ProviderInfoQuery = JsonConvert.DeserializeObject<GetJhfwRyglListIn>(ProviderInfoQuery_Str);
            //string xmlMessage_ProviderInfoQuery = V3_PRPM_IN306010UV01.ProviderInfoQuery(getJhfwRyglListIn_ProviderInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ProviderInfoQuery);
            //Console.WriteLine();

            ////医疗卫生人员信息查询服务-响应
            //string ProviderInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"oaid\":\"1\",\"sex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"birthday\":\"1\",\"birthaddress\":\"1\",\"cellphone\":\"1\",\"netphone\":\"1\",\"py\":\"1\",\"title\":\"1\",\"ismedgroup\":\"1\",\"medgroup\":\"1\",\"empintroduction\":\"1\",\"deptid\":\"1\",\"rzsj\":\"1\",\"lzsj\":\"1\",\"remark\":\"1\",\"ybysdm\":\"1\",\"ybhsdm\":\"1\",\"certificateno\":\"1\",\"technicianno\":\"1\",\"zydd\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"oaid\":\"1\",\"sex\":\"1\",\"zjlx\":\"1\",\"pcid\":\"1\",\"birthday\":\"1\",\"birthaddress\":\"1\",\"cellphone\":\"1\",\"netphone\":\"1\",\"py\":\"1\",\"title\":\"1\",\"ismedgroup\":\"1\",\"medgroup\":\"1\",\"empintroduction\":\"1\",\"deptid\":\"1\",\"rzsj\":\"1\",\"lzsj\":\"1\",\"remark\":\"1\",\"ybysdm\":\"1\",\"ybhsdm\":\"1\",\"certificateno\":\"1\",\"technicianno\":\"1\",\"zydd\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwRyglListOut getJhfwRyglListOut_ProviderInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwRyglListOut>(ProviderInfoQuery_Response_Str);
            //string xmlMessage_ProviderInfoQuery_Response = V3_PRPM_IN306011UV01.ProviderInfoQuery_Response(getJhfwRyglListOut_ProviderInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ProviderInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第5部分：术语注册、查询服务；

            //#endregion

            //#region 第6部分：文档注册、查询服务；

            //#endregion

            //#region 第7部分：就诊信息交互服务；
            ////门诊挂号信息新增服务
            //string OutPatientInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"jzksdm\":\"1\",\"jzksmc\":\"1\",\"jzysdm\":\"1\",\"jzysxm\":\"1\",\"jz_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwMzghIn addJhfwMzghIn_OutPatientInfoAdd = JsonConvert.DeserializeObject<AddJhfwMzghIn>(OutPatientInfoAdd_Str);
            //string xmlMessage_OutPatientInfoAdd = V3_PRPA_IN400001UV_Mzgh.OutPatientInfoAdd(addJhfwMzghIn_OutPatientInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientInfoAdd);
            //Console.WriteLine();

            ////门诊挂号信息更新服务
            //string OutPatientInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"jzksdm\":\"1\",\"jzksmc\":\"1\",\"jzysdm\":\"1\",\"jzysxm\":\"1\",\"jz_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwMzghIn addJhfwMzghIn_OutPatientInfoUpdate = JsonConvert.DeserializeObject<AddJhfwMzghIn>(OutPatientInfoUpdate_Str);
            //string xmlMessage_OutPatientInfoUpdate = V3_PRPA_IN400002UV_Mzgh.OutPatientInfoUpdate(addJhfwMzghIn_OutPatientInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientInfoUpdate);
            //Console.WriteLine();

            ////门诊挂号信息查询服务
            //string OutPatientInfoQuery_Str = "{\"page\":1,\"percount\":1,\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"jzksdm\":\"1\",\"jz_date_low\":\"1\",\"jz_date_high\":\"1\"}";
            //GetJhfwMzghListIn getJhfwMzghListIn_OutPatientInfoQuery = JsonConvert.DeserializeObject<GetJhfwMzghListIn>(OutPatientInfoQuery_Str);
            //string xmlMessage_OutPatientInfoQuery = V3_PRPA_IN900300UV_Mzgh.OutPatientInfoQuery(getJhfwMzghListIn_OutPatientInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientInfoQuery);
            //Console.WriteLine();

            ////门诊挂号信息查询服务-响应
            //string OutPatientInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"jzksdm\":\"1\",\"jzksmc\":\"1\",\"jzysdm\":\"1\",\"jzysxm\":\"1\",\"jz_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"jzksdm\":\"1\",\"jzksmc\":\"1\",\"jzysdm\":\"1\",\"jzysxm\":\"1\",\"jz_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwMzghListOut getJhfwMzghListOut_OutPatientInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwMzghListOut>(OutPatientInfoQuery_Response_Str);
            //string xmlMessage_OutPatientInfoQuery_Response = V3_PRPA_IN900350UV_Mzgh.OutPatientInfoQuery_Response(getJhfwMzghListOut_OutPatientInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientInfoQuery_Response);
            //Console.WriteLine();


            ////住院就诊信息登记服务
            //string InPatientInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"zycs\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zyrq\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"jzyy\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwZydjIn addJhfwZydjIn_InPatientInfoAdd = JsonConvert.DeserializeObject<AddJhfwZydjIn>(InPatientInfoAdd_Str);
            //string xmlMessage_InPatientInfoAdd = V3_PRPA_IN400001UV_Zyjz.InPatientInfoAdd(addJhfwZydjIn_InPatientInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_InPatientInfoAdd);
            //Console.WriteLine();

            ////住院就诊信息更新服务
            //string InPatientInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"zycs\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zyrq\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"jzyy\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwZydjIn addJhfwZydjIn_InPatientInfoUpdate = JsonConvert.DeserializeObject<AddJhfwZydjIn>(InPatientInfoUpdate_Str);
            //string xmlMessage_InPatientInfoUpdate = V3_PRPA_IN400002UV_Zyjz.InPatientInfoUpdate(addJhfwZydjIn_InPatientInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_InPatientInfoUpdate);
            //Console.WriteLine();

            ////住院就诊信息查询服务
            //string InPatientInfoQuery_Str = "{\"page\":1,\"percount\":1,\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zybqdm\":\"1\",\"zyrq_low\":\"1\",\"zyrq_high\":\"1\"}";
            //GetJhfwZydjListIn getJhfwZydjListIn_InPatientInfoQuery = JsonConvert.DeserializeObject<GetJhfwZydjListIn>(InPatientInfoQuery_Str);
            //string xmlMessage_InPatientInfoQuery = V3_PRPA_IN900300UV_Zyjz.InPatientInfoQuery(getJhfwZydjListIn_InPatientInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_InPatientInfoQuery);
            //Console.WriteLine();

            ////住院就诊信息查询服务-响应
            //string InPatientInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"zycs\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zyrq\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"jzyy\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"service\":\"1\",\"stay\":\"1\",\"zycs\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zyrq\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"jzyy\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwZydjListOut getJhfwZydjListOut_InPatientInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwZydjListOut>(InPatientInfoQuery_Response_Str);
            //string xmlMessage_InPatientInfoQuery_Response = V3_PRPA_IN900350UV_Zyjz.InPatientInfoQuery_Response(getJhfwZydjListOut_InPatientInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_InPatientInfoQuery_Response);
            //Console.WriteLine();


            ////住院转科信息新增服务
            //string TransferInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"zkid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyrq\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zrksdm\":\"1\",\"zrksmc\":\"1\",\"zrbqdm\":\"1\",\"zrbqmc\":\"1\",\"zrbc\":\"1\",\"zrbf\":\"1\",\"zr_date\":\"1\",\"zcksdm\":\"1\",\"zcksmc\":\"1\",\"zcbqdm\":\"1\",\"zcbqmc\":\"1\",\"zcbc\":\"1\",\"zcbf\":\"1\",\"zc_date\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwZyzkIn addJhfwZyzkIn_TransferInfoAdd = JsonConvert.DeserializeObject<AddJhfwZyzkIn>(TransferInfoAdd_Str);
            //string xmlMessage_TransferInfoAdd = V3_PRPA_IN302011UV_Zyzk.TransferInfoAdd(addJhfwZyzkIn_TransferInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_TransferInfoAdd);
            //Console.WriteLine();

            ////住院转科信息更新服务
            //string TransferInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"zkid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyrq\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zrksdm\":\"1\",\"zrksmc\":\"1\",\"zrbqdm\":\"1\",\"zrbqmc\":\"1\",\"zrbc\":\"1\",\"zrbf\":\"1\",\"zr_date\":\"1\",\"zcksdm\":\"1\",\"zcksmc\":\"1\",\"zcbqdm\":\"1\",\"zcbqmc\":\"1\",\"zcbc\":\"1\",\"zcbf\":\"1\",\"zc_date\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwZyzkIn addJhfwZyzkIn_TransferInfoUpdate = JsonConvert.DeserializeObject<AddJhfwZyzkIn>(TransferInfoUpdate_Str);
            //string xmlMessage_TransferInfoUpdate = V3_PRPA_IN302012UV_Zyzk.TransferInfoUpdate(addJhfwZyzkIn_TransferInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_TransferInfoUpdate);
            //Console.WriteLine();

            ////住院转科信息查询服务
            //string TransferInfoQuery_Str = "{\"page\":1,\"percount\":1,\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zr_date\":\"1\",\"zc_date\":\"1\"}";
            //GetJhfwZyzkListIn getJhfwZyzkListIn_TransferInfoQuery = JsonConvert.DeserializeObject<GetJhfwZyzkListIn>(TransferInfoQuery_Str);
            //string xmlMessage_TransferInfoQuery = V3_PRPA_IN900300UV_Zyzk.TransferInfoQuery(getJhfwZyzkListIn_TransferInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_TransferInfoQuery);
            //Console.WriteLine();

            ////住院转科信息查询服务-响应
            //string TransferInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"zkid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyrq\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zrksdm\":\"1\",\"zrksmc\":\"1\",\"zrbqdm\":\"1\",\"zrbqmc\":\"1\",\"zrbc\":\"1\",\"zrbf\":\"1\",\"zr_date\":\"1\",\"zcksdm\":\"1\",\"zcksmc\":\"1\",\"zcbqdm\":\"1\",\"zcbqmc\":\"1\",\"zcbc\":\"1\",\"zcbf\":\"1\",\"zc_date\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"zkid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyrq\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"zrksdm\":\"1\",\"zrksmc\":\"1\",\"zrbqdm\":\"1\",\"zrbqmc\":\"1\",\"zrbc\":\"1\",\"zrbf\":\"1\",\"zr_date\":\"1\",\"zcksdm\":\"1\",\"zcksmc\":\"1\",\"zcbqdm\":\"1\",\"zcbqmc\":\"1\",\"zcbc\":\"1\",\"zcbf\":\"1\",\"zc_date\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwZyzkListOut getJhfwZyzkListOut_TransferInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwZyzkListOut>(TransferInfoQuery_Response_Str);
            //string xmlMessage_TransferInfoQuery_Response = V3_PRPA_IN900350UV_Zyzk.TransferInfoQuery_Response(getJhfwZyzkListOut_TransferInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_TransferInfoQuery_Response);
            //Console.WriteLine();


            ////出院登记信息新增服务
            //string DischargeInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyts\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"cyksdm\":\"1\",\"cyksmc\":\"1\",\"cybqdm\":\"1\",\"cybqmc\":\"1\",\"cy_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwCydjIn addJhfwCydjIn_DischargeInfoAdd = JsonConvert.DeserializeObject<AddJhfwCydjIn>(DischargeInfoAdd_Str);
            //string xmlMessage_DischargeInfoAdd = V3_PRPA_IN400003UV_Cydj.DischargeInfoAdd(addJhfwCydjIn_DischargeInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_DischargeInfoAdd);
            //Console.WriteLine();

            ////出院登记信息更新服务
            //string DischargeInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyts\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"cyksdm\":\"1\",\"cyksmc\":\"1\",\"cybqdm\":\"1\",\"cybqmc\":\"1\",\"cy_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}";
            //AddJhfwCydjIn addJhfwCydjIn_DischargeInfoUpdate = JsonConvert.DeserializeObject<AddJhfwCydjIn>(DischargeInfoUpdate_Str);
            //string xmlMessage_DischargeInfoUpdate = V3_PRPA_IN400002UV_Cydj.DischargeInfoUpdate(addJhfwCydjIn_DischargeInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_DischargeInfoUpdate);
            //Console.WriteLine();

            ////出院登记信息查询服务
            //string DischargeInfoQuery_Str = "{\"page\":1,\"percount\":1,\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"cyksdm\":\"1\",\"cybqdm\":\"1\",\"cy_date_low\":\"1\",\"cy_date_high\":\"1\"}";
            //GetJhfwCydjListIn getJhfwCydjListIn_DischargeInfoQuery = JsonConvert.DeserializeObject<GetJhfwCydjListIn>(DischargeInfoQuery_Str);
            //string xmlMessage_DischargeInfoQuery = V3_PRPA_IN900300UV_Cydj.DischargeInfoQuery(getJhfwCydjListIn_DischargeInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_DischargeInfoQuery);
            //Console.WriteLine();

            ////出院登记信息查询服务-响应
            //string DischargeInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyts\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"cyksdm\":\"1\",\"cyksmc\":\"1\",\"cybqdm\":\"1\",\"cybqmc\":\"1\",\"cy_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyts\":\"1\",\"zyysdm\":\"1\",\"zyysxm\":\"1\",\"cyksdm\":\"1\",\"cyksmc\":\"1\",\"cybqdm\":\"1\",\"cybqmc\":\"1\",\"cy_date\":\"1\",\"diagcode\":\"1\",\"diagname\":\"1\",\"zd_empid\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"2024-08-05 16:50:33\",\"xg_empid\":\"1\",\"xgsj\":\"2024-08-10 16:50:33\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwCydjListOut getJhfwCydjListOut_DischargeInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwCydjListOut>(DischargeInfoQuery_Response_Str);
            //string xmlMessage_DischargeInfoQuery_Response = V3_PRPA_IN900350UV_Cydj.DischargeInfoQuery_Response(getJhfwCydjListOut_DischargeInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_DischargeInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第8部分：医嘱信息交互服务；
            ////医嘱信息新增服务
            //string OrderInfoAdd_Str = "{\"dotype\":\"ADD\",\"bedid\":\"1\",\"bfh\":\"1\",\"dabh\":\"1\",\"dcjl\":\"1\",\"dcjldw\":\"1\",\"ggdw\":\"1\",\"hoscode\":\"1\",\"in_date\":\"1\",\"in_empid\":\"1\",\"jkkh\":\"1\",\"jssj\":\"1\",\"jxdm\":\"1\",\"jxmc\":\"1\",\"jzlsh\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdrq\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"ksjg\":\"1\",\"kssj\":\"1\",\"lydw\":\"1\",\"lyl\":\"1\",\"lyxt\":\"1\",\"mrn\":\"1\",\"patid\":\"1\",\"pbirthday\":\"1\",\"pcid\":\"1\",\"pddm\":\"1\",\"pdmc\":\"1\",\"pname\":\"1\",\"pphone\":\"1\",\"psex\":\"1\",\"remark\":\"1\",\"series\":\"1\",\"shrdm\":\"1\",\"shrq\":\"1\",\"shrxm\":\"1\",\"sjly\":\"1\",\"sjyzdm\":\"1\",\"stay\":\"1\",\"useflag\":\"1\",\"xgsj\":\"1\",\"xg_empid\":\"1\",\"ybbm\":\"1\",\"ybmc\":\"1\",\"ypgg\":\"1\",\"ywmc\":\"1\",\"yytjdm\":\"1\",\"yytjmc\":\"1\",\"yyts\":\"1\",\"yzdm\":\"1\",\"yzid\":\"1\",\"yzlbdm\":\"1\",\"yzlbmc\":\"1\",\"yzmc\":\"1\",\"yzxh\":\"1\",\"zjl\":\"1\",\"zjldw\":\"1\",\"zxhoscode\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\"}";
            //AddJhfwYzbcIn addJhfwYzbcIn_OrderInfoAdd = JsonConvert.DeserializeObject<AddJhfwYzbcIn>(OrderInfoAdd_Str);
            //string xmlMessage_OrderInfoAdd = V3_POOR_IN200901UV_Yzxx.OrderInfoAdd(addJhfwYzbcIn_OrderInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OrderInfoAdd);
            //Console.WriteLine();

            ////医嘱信息更新服务
            //string OrderInfoUpdate_Str = "{\"dotype\":\"MOD\",\"bedid\":\"1\",\"bfh\":\"1\",\"dabh\":\"1\",\"dcjl\":\"1\",\"dcjldw\":\"1\",\"ggdw\":\"1\",\"hoscode\":\"1\",\"in_date\":\"1\",\"in_empid\":\"1\",\"jkkh\":\"1\",\"jssj\":\"1\",\"jxdm\":\"1\",\"jxmc\":\"1\",\"jzlsh\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdrq\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"ksjg\":\"1\",\"kssj\":\"1\",\"lydw\":\"1\",\"lyl\":\"1\",\"lyxt\":\"1\",\"mrn\":\"1\",\"patid\":\"1\",\"pbirthday\":\"1\",\"pcid\":\"1\",\"pddm\":\"1\",\"pdmc\":\"1\",\"pname\":\"1\",\"pphone\":\"1\",\"psex\":\"1\",\"remark\":\"1\",\"series\":\"1\",\"shrdm\":\"1\",\"shrq\":\"1\",\"shrxm\":\"1\",\"sjly\":\"1\",\"sjyzdm\":\"1\",\"stay\":\"1\",\"useflag\":\"1\",\"xgsj\":\"1\",\"xg_empid\":\"1\",\"ybbm\":\"1\",\"ybmc\":\"1\",\"ypgg\":\"1\",\"ywmc\":\"1\",\"yytjdm\":\"1\",\"yytjmc\":\"1\",\"yyts\":\"1\",\"yzdm\":\"1\",\"yzid\":\"1\",\"yzlbdm\":\"1\",\"yzlbmc\":\"1\",\"yzmc\":\"1\",\"yzxh\":\"1\",\"zjl\":\"1\",\"zjldw\":\"1\",\"zxhoscode\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\"}";
            //AddJhfwYzbcIn addJhfwYzbcIn_OrderInfoUpdate = JsonConvert.DeserializeObject<AddJhfwYzbcIn>(OrderInfoUpdate_Str);
            //string xmlMessage_OrderInfoUpdate = V3_POOR_IN200902UV_Yzxx.OrderInfoUpdate(addJhfwYzbcIn_OrderInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OrderInfoUpdate);
            //Console.WriteLine();

            ////医嘱信息查询服务
            //string OrderInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\"}";
            //GetJhfwYzbcListIn getJhfwYzbcListIn_OrderInfoQuery = JsonConvert.DeserializeObject<GetJhfwYzbcListIn>(OrderInfoQuery_Str);
            //string xmlMessage_OrderInfoQuery = V3_QUMT_IN020030UV01_Yzxx.OrderInfoQuery(getJhfwYzbcListIn_OrderInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OrderInfoQuery);
            //Console.WriteLine();

            ////医嘱信息查询服务-响应
            //string OrderInfoQuery_Response_Str = "{\"data\":[{\"bedid\":\"1\",\"bfh\":\"1\",\"dabh\":\"1\",\"dcjl\":\"1\",\"dcjldw\":\"1\",\"ggdw\":\"1\",\"hoscode\":\"1\",\"in_date\":\"1\",\"in_empid\":\"1\",\"jkkh\":\"1\",\"jssj\":\"1\",\"jxdm\":\"1\",\"jxmc\":\"1\",\"jzlsh\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdrq\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"ksjg\":\"1\",\"kssj\":\"1\",\"lydw\":\"1\",\"lyl\":\"1\",\"lyxt\":\"1\",\"mrn\":\"1\",\"patid\":\"1\",\"pbirthday\":\"1\",\"pcid\":\"1\",\"pddm\":\"1\",\"pdmc\":\"1\",\"pname\":\"1\",\"pphone\":\"1\",\"psex\":\"1\",\"remark\":\"1\",\"series\":\"1\",\"shrdm\":\"1\",\"shrq\":\"1\",\"shrxm\":\"1\",\"sjly\":\"1\",\"sjyzdm\":\"1\",\"stay\":\"1\",\"useflag\":\"1\",\"xgsj\":\"1\",\"xg_empid\":\"1\",\"ybbm\":\"1\",\"ybmc\":\"1\",\"ypgg\":\"1\",\"ywmc\":\"1\",\"yytjdm\":\"1\",\"yytjmc\":\"1\",\"yyts\":\"1\",\"yzdm\":\"1\",\"yzid\":\"1\",\"yzlbdm\":\"1\",\"yzlbmc\":\"1\",\"yzmc\":\"1\",\"yzxh\":\"1\",\"zjl\":\"1\",\"zjldw\":\"1\",\"zxhoscode\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\"},{\"bedid\":\"1\",\"bfh\":\"1\",\"dabh\":\"1\",\"dcjl\":\"1\",\"dcjldw\":\"1\",\"ggdw\":\"1\",\"hoscode\":\"1\",\"in_date\":\"1\",\"in_empid\":\"1\",\"jkkh\":\"1\",\"jssj\":\"1\",\"jxdm\":\"1\",\"jxmc\":\"1\",\"jzlsh\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdrq\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"ksjg\":\"1\",\"kssj\":\"1\",\"lydw\":\"1\",\"lyl\":\"1\",\"lyxt\":\"1\",\"mrn\":\"1\",\"patid\":\"1\",\"pbirthday\":\"1\",\"pcid\":\"1\",\"pddm\":\"1\",\"pdmc\":\"1\",\"pname\":\"1\",\"pphone\":\"1\",\"psex\":\"1\",\"remark\":\"1\",\"series\":\"1\",\"shrdm\":\"1\",\"shrq\":\"1\",\"shrxm\":\"1\",\"sjly\":\"1\",\"sjyzdm\":\"1\",\"stay\":\"1\",\"useflag\":\"1\",\"xgsj\":\"1\",\"xg_empid\":\"1\",\"ybbm\":\"1\",\"ybmc\":\"1\",\"ypgg\":\"1\",\"ywmc\":\"1\",\"yytjdm\":\"1\",\"yytjmc\":\"1\",\"yyts\":\"1\",\"yzdm\":\"1\",\"yzid\":\"1\",\"yzlbdm\":\"1\",\"yzlbmc\":\"1\",\"yzmc\":\"1\",\"yzxh\":\"1\",\"zjl\":\"1\",\"zjldw\":\"1\",\"zxhoscode\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwYzbcListOut getJhfwYzbcListOut_OrderInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwYzbcListOut>(OrderInfoQuery_Response_Str);
            //string xmlMessage_OrderInfoQuery_Response = V3_QUMT_IN020040UV01_Yzxx.OrderInfoQuery_Response(getJhfwYzbcListOut_OrderInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OrderInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第9部分：申请单信息交互服务；
            ////检验申请信息新增服务
            //string ExamAppInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jyxmdm\":\"1\",\"jyxmmc\":\"1\",\"bbdm\":\"1\",\"bblb\":\"1\",\"jyff\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJysqdIn addJhfwJysqdIn_ExamAppInfoAdd = JsonConvert.DeserializeObject<AddJhfwJysqdIn>(ExamAppInfoAdd_Str);
            //string xmlMessage_ExamAppInfoAdd = V3_POOR_IN200901UV_Jysq.ExamAppInfoAdd(addJhfwJysqdIn_ExamAppInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ExamAppInfoAdd);
            //Console.WriteLine();

            ////检验申请信息更新服务
            //string ExamAppInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jyxmdm\":\"1\",\"jyxmmc\":\"1\",\"bbdm\":\"1\",\"bblb\":\"1\",\"jyff\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJysqdIn addJhfwJysqdIn_ExamAppInfoUpdate = JsonConvert.DeserializeObject<AddJhfwJysqdIn>(ExamAppInfoUpdate_Str);
            //string xmlMessage_ExamAppInfoUpdate = V3_POOR_IN200902UV_Jysq.ExamAppInfoUpdate(addJhfwJysqdIn_ExamAppInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ExamAppInfoUpdate);
            //Console.WriteLine();

            ////检验申请信息查询服务
            //string ExamAppInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"bbdm\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"ybkh\":\"1\",\"kdysdm\":\"1\",\"sqdzt\":\"1\"}";
            //GetJhfwJysqdListIn getJhfwJysqdListIn_ExamAppInfoQuery = JsonConvert.DeserializeObject<GetJhfwJysqdListIn>(ExamAppInfoQuery_Str);
            //string xmlMessage_ExamAppInfoQuery = V3_QUMT_IN020030UV01_Jysq.ExamAppInfoQuery(getJhfwJysqdListIn_ExamAppInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ExamAppInfoQuery);
            //Console.WriteLine();

            ////检验申请信息查询服务-响应
            //string ExamAppInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jyxmdm\":\"1\",\"jyxmmc\":\"1\",\"bbdm\":\"1\",\"bblb\":\"1\",\"jyff\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jyxmdm\":\"1\",\"jyxmmc\":\"1\",\"bbdm\":\"1\",\"bblb\":\"1\",\"jyff\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwJysqdListOut getJhfwJysqdListOut_ExamAppInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwJysqdListOut>(ExamAppInfoQuery_Response_Str);
            //string xmlMessage_ExamAppInfoQuery_Response = V3_QUMT_IN020040UV01_Jysq.ExamAppInfoQuery_Response(getJhfwJysqdListOut_ExamAppInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_ExamAppInfoQuery_Response);
            //Console.WriteLine();


            ////检查申请信息新增服务
            //string CheckAppInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jcxmdm\":\"1\",\"jcxmmc\":\"1\",\"jclxdm\":\"1\",\"jclxmc\":\"1\",\"jcbwdm\":\"1\",\"jcbwmc\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJcsqdIn addJhfwJcsqdIn_CheckAppInfoAdd = JsonConvert.DeserializeObject<AddJhfwJcsqdIn>(CheckAppInfoAdd_Str);
            //string xmlMessage_CheckAppInfoAdd = V3_POOR_IN200901UV_Jcsq.CheckAppInfoAdd(addJhfwJcsqdIn_CheckAppInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppInfoAdd);
            //Console.WriteLine();

            ////检查申请信息更新服务
            //string CheckAppInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jcxmdm\":\"1\",\"jcxmmc\":\"1\",\"jclxdm\":\"1\",\"jclxmc\":\"1\",\"jcbwdm\":\"1\",\"jcbwmc\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJcsqdIn addJhfwJcsqdIn_CheckAppInfoUpdate = JsonConvert.DeserializeObject<AddJhfwJcsqdIn>(CheckAppInfoUpdate_Str);
            //string xmlMessage_CheckAppInfoUpdate = V3_POOR_IN200902UV_Jcsq.CheckAppInfoUpdate(addJhfwJcsqdIn_CheckAppInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppInfoUpdate);
            //Console.WriteLine();

            ////检查申请信息查询服务
            //string CheckAppInfoQuery_Str = "{\"dotype\":\"1\",\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"ybkh\":\"1\",\"kdysdm\":\"1\"}";
            //GetJhfwJcsqdListIn getJhfwJcsqdListIn_CheckAppInfoQuery = JsonConvert.DeserializeObject<GetJhfwJcsqdListIn>(CheckAppInfoQuery_Str);
            //string xmlMessage_CheckAppInfoQuery = V3_QUMT_IN020030UV01_Jcsq.CheckAppInfoQuery(getJhfwJcsqdListIn_CheckAppInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppInfoQuery);
            //Console.WriteLine();

            ////检查申请信息查询服务-响应
            //string CheckAppInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jcxmdm\":\"1\",\"jcxmmc\":\"1\",\"jclxdm\":\"1\",\"jclxmc\":\"1\",\"jcbwdm\":\"1\",\"jcbwmc\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"jcxmdm\":\"1\",\"jcxmmc\":\"1\",\"jclxdm\":\"1\",\"jclxmc\":\"1\",\"jcbwdm\":\"1\",\"jcbwmc\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwJcsqdListOut getJhfwJcsqdListOut_CheckAppInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwJcsqdListOut>(CheckAppInfoQuery_Response_Str);
            //string xmlMessage_CheckAppInfoQuery_Response = V3_QUMT_IN020040UV01_Jcsq.CheckAppInfoQuery_Response(getJhfwJcsqdListOut_CheckAppInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppInfoQuery_Response);
            //Console.WriteLine();


            //输血申请信息新增服务
            //string BloodTransAppInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"aboxx\":\"1\",\"rhxx\":\"1\",\"height\":\"1\",\"weight\":\"1\",\"szy\":\"1\",\"ssy\":\"1\",\"mb\":\"1\",\"tw\":\"1\",\"sxs\":\"1\",\"sxfys\":\"1\",\"bsxx\":\"1\",\"ywgms\":\"1\",\"qtjbbs\":\"1\",\"yc\":\"1\",\"cc\":\"1\",\"sqaboxx\":\"1\",\"sqrhxx\":\"1\",\"sl\":\"1\",\"sldw\":\"1\",\"cxbj\":\"1\",\"sxjjbj\":\"1\",\"sxmd\":\"1\",\"sxxz\":\"1\",\"sxdd\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"sqrq\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSxsqdIn addJhfwSxsqdIn_BloodTransAppInfoAdd = JsonConvert.DeserializeObject<AddJhfwSxsqdIn>(BloodTransAppInfoAdd_Str);
            //string xmlMessage_BloodTransAppInfoAdd = V3_POOR_IN200901UV_Sxsq.BloodTransAppInfoAdd(addJhfwSxsqdIn_BloodTransAppInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_BloodTransAppInfoAdd);
            //Console.WriteLine();

            ////输血申请信息更新服务
            //string BloodTransAppInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"aboxx\":\"1\",\"rhxx\":\"1\",\"height\":\"1\",\"weight\":\"1\",\"szy\":\"1\",\"ssy\":\"1\",\"mb\":\"1\",\"tw\":\"1\",\"sxs\":\"1\",\"sxfys\":\"1\",\"bsxx\":\"1\",\"ywgms\":\"1\",\"qtjbbs\":\"1\",\"yc\":\"1\",\"cc\":\"1\",\"sqaboxx\":\"1\",\"sqrhxx\":\"1\",\"sl\":\"1\",\"sldw\":\"1\",\"cxbj\":\"1\",\"sxjjbj\":\"1\",\"sxmd\":\"1\",\"sxxz\":\"1\",\"sxdd\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"sqrq\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSxsqdIn addJhfwSxsqdIn_BloodTransAppInfoUpdate = JsonConvert.DeserializeObject<AddJhfwSxsqdIn>(BloodTransAppInfoUpdate_Str);
            //string xmlMessage_BloodTransAppInfoUpdate = V3_POOR_IN200902UV_Sxsq.BloodTransAppInfoUpdate(addJhfwSxsqdIn_BloodTransAppInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_BloodTransAppInfoUpdate);
            //Console.WriteLine();

            ////输血申请信息查询服务
            //string BloodTransAppInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pcid\":\"1\",\"kdysdm\":\"1\",\"kdrq_low\":\"1\",\"kdrq_high\":\"1\"}";
            //GetJhfwSxsqdListIn getJhfwSxsqdListIn_BloodTransAppInfoQuery = JsonConvert.DeserializeObject<GetJhfwSxsqdListIn>(BloodTransAppInfoQuery_Str);
            //string xmlMessage_BloodTransAppInfoQuery = V3_QUMT_IN020030UV01_Sxsq.BloodTransAppInfoQuery(getJhfwSxsqdListIn_BloodTransAppInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_BloodTransAppInfoQuery);
            //Console.WriteLine();

            ////输血申请信息查询服务-响应
            //string BloodTransAppInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"aboxx\":\"1\",\"rhxx\":\"1\",\"height\":\"1\",\"weight\":\"1\",\"szy\":\"1\",\"ssy\":\"1\",\"mb\":\"1\",\"tw\":\"1\",\"sxs\":\"1\",\"sxfys\":\"1\",\"bsxx\":\"1\",\"ywgms\":\"1\",\"qtjbbs\":\"1\",\"yc\":\"1\",\"cc\":\"1\",\"sqaboxx\":\"1\",\"sqrhxx\":\"1\",\"sl\":\"1\",\"sldw\":\"1\",\"cxbj\":\"1\",\"sxjjbj\":\"1\",\"sxmd\":\"1\",\"sxxz\":\"1\",\"sxdd\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"sqrq\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"aboxx\":\"1\",\"rhxx\":\"1\",\"height\":\"1\",\"weight\":\"1\",\"szy\":\"1\",\"ssy\":\"1\",\"mb\":\"1\",\"tw\":\"1\",\"sxs\":\"1\",\"sxfys\":\"1\",\"bsxx\":\"1\",\"ywgms\":\"1\",\"qtjbbs\":\"1\",\"yc\":\"1\",\"cc\":\"1\",\"sqaboxx\":\"1\",\"sqrhxx\":\"1\",\"sl\":\"1\",\"sldw\":\"1\",\"cxbj\":\"1\",\"sxjjbj\":\"1\",\"sxmd\":\"1\",\"sxxz\":\"1\",\"sxdd\":\"1\",\"yxjdm\":\"1\",\"yxjmc\":\"1\",\"remark\":\"1\",\"sqrq\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwSxsqdListOut getJhfwSxsqdListOut_BloodTransAppInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwSxsqdListOut>(BloodTransAppInfoQuery_Response_Str);
            //string xmlMessage_BloodTransAppInfoQuery_Response = V3_QUMT_IN020040UV01_Sxsq.BloodTransAppInfoQuery_Response(getJhfwSxsqdListOut_BloodTransAppInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_BloodTransAppInfoQuery_Response);
            //Console.WriteLine();


            //手术申请信息新增服务
            //string OperationAppInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyrq\":\"1\",\"ssbm\":\"1\",\"ssmc\":\"1\",\"ssdjdm\":\"1\",\"ssdjmc\":\"1\",\"ssxzdm\":\"1\",\"ssxzmc\":\"1\",\"mzfsdm\":\"1\",\"mzfsmc\":\"1\",\"ssysdm\":\"1\",\"ssysxm\":\"1\",\"ydsssj\":\"1\",\"remark\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSssqdIn addJhfwSssqdIn_OperationAppInfoAdd = JsonConvert.DeserializeObject<AddJhfwSssqdIn>(OperationAppInfoAdd_Str);
            //string xmlMessage_OperationAppInfoAdd = V3_POOR_IN200901UV_Sssq.OperationAppInfoAdd(addJhfwSssqdIn_OperationAppInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationAppInfoAdd);
            //Console.WriteLine();

            ////手术申请信息更新服务
            //string OperationAppInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyrq\":\"1\",\"ssbm\":\"1\",\"ssmc\":\"1\",\"ssdjdm\":\"1\",\"ssdjmc\":\"1\",\"ssxzdm\":\"1\",\"ssxzmc\":\"1\",\"mzfsdm\":\"1\",\"mzfsmc\":\"1\",\"ssysdm\":\"1\",\"ssysxm\":\"1\",\"ydsssj\":\"1\",\"remark\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSssqdIn addJhfwSssqdIn_OperationAppInfoUpdate = JsonConvert.DeserializeObject<AddJhfwSssqdIn>(OperationAppInfoUpdate_Str);
            //string xmlMessage_OperationAppInfoUpdate = V3_POOR_IN200902UV_Sssq.OperationAppInfoUpdate(addJhfwSssqdIn_OperationAppInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationAppInfoUpdate);
            //Console.WriteLine();

            ////手术申请信息查询服务
            //string OperationAppInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"kdysdm\":\"1\",\"kdrq_low\":\"1\",\"kdrq_high\":\"1\"}";
            //GetJhfwSssqdListIn getJhfwSssqdListIn_OperationAppInfoQuery = JsonConvert.DeserializeObject<GetJhfwSssqdListIn>(OperationAppInfoQuery_Str);
            //string xmlMessage_OperationAppInfoQuery = V3_QUMT_IN020030UV01_Sssq.OperationAppInfoQuery(getJhfwSssqdListIn_OperationAppInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationAppInfoQuery);
            //Console.WriteLine();

            ////手术申请信息查询服务-响应
            //string OperationAppInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyrq\":\"1\",\"ssbm\":\"1\",\"ssmc\":\"1\",\"ssdjdm\":\"1\",\"ssdjmc\":\"1\",\"ssxzdm\":\"1\",\"ssxzmc\":\"1\",\"mzfsdm\":\"1\",\"mzfsmc\":\"1\",\"ssysdm\":\"1\",\"ssysxm\":\"1\",\"ydsssj\":\"1\",\"remark\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"sqdh\":\"1\",\"yzid\":\"1\",\"jzlsh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"pbirthday\":\"1\",\"psex\":\"1\",\"pphone\":\"1\",\"page\":\"1\",\"pageunit\":\"1\",\"paddress\":\"1\",\"ybkh\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"zyksdm\":\"1\",\"zyksmc\":\"1\",\"zybqdm\":\"1\",\"zybqmc\":\"1\",\"bedid\":\"1\",\"bfh\":\"1\",\"zyrq\":\"1\",\"ssbm\":\"1\",\"ssmc\":\"1\",\"ssdjdm\":\"1\",\"ssdjmc\":\"1\",\"ssxzdm\":\"1\",\"ssxzmc\":\"1\",\"mzfsdm\":\"1\",\"mzfsmc\":\"1\",\"ssysdm\":\"1\",\"ssysxm\":\"1\",\"ydsssj\":\"1\",\"remark\":\"1\",\"kdksdm\":\"1\",\"kdksmc\":\"1\",\"kdysdm\":\"1\",\"kdysxm\":\"1\",\"kdrq\":\"1\",\"jbdm\":\"1\",\"jbmc\":\"1\",\"zdlbdm\":\"1\",\"zdlbmc\":\"1\",\"zdrq\":\"1\",\"shrdm\":\"1\",\"shrxm\":\"1\",\"shrq\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"zxsj\":\"1\",\"sqdmc\":\"1\",\"sqdzt\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwSssqdListOut getJhfwSssqdListOut_OperationAppInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwSssqdListOut>(OperationAppInfoQuery_Response_Str);
            //string xmlMessage_OperationAppInfoQuery_Response = V3_QUMT_IN020040UV01_Sssq.OperationAppInfoQuery_Response(getJhfwSssqdListOut_OperationAppInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationAppInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第10部分：预约信息交互服务；
            ////号源排班信息新增服务
            //string SourceAndScheduleInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"fsdzylx\":\"1\",\"deptid\":\"1\",\"deptname\":\"1\",\"classid\":\"1\",\"classname\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sfzh\":\"1\",\"title\":\"1\",\"zydm\":\"1\",\"zyms\":\"1\",\"fsdzymc\":\"1\",\"fsdzyzs\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"zhs\":\"1\",\"syhs\":\"1\",\"pbzt\":\"1\",\"pb_empid\":\"1\",\"pb_empname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwHypbIn addJhfwHypbIn_SourceAndScheduleInfoAdd = JsonConvert.DeserializeObject<AddJhfwHypbIn>(SourceAndScheduleInfoAdd_Str);
            //string xmlMessage_SourceAndScheduleInfoAdd = V3_PRSC_IN030101UV.SourceAndScheduleInfoAdd(addJhfwHypbIn_SourceAndScheduleInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_SourceAndScheduleInfoAdd);
            //Console.WriteLine();

            ////号源排班信息更新服务
            //string SourceAndScheduleInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"fsdzylx\":\"1\",\"deptid\":\"1\",\"deptname\":\"1\",\"classid\":\"1\",\"classname\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sfzh\":\"1\",\"title\":\"1\",\"zydm\":\"1\",\"zyms\":\"1\",\"fsdzymc\":\"1\",\"fsdzyzs\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"zhs\":\"1\",\"syhs\":\"1\",\"pbzt\":\"1\",\"pb_empid\":\"1\",\"pb_empname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwHypbIn addJhfwHypbIn_SourceAndScheduleInfoUpdate = JsonConvert.DeserializeObject<AddJhfwHypbIn>(SourceAndScheduleInfoUpdate_Str);
            //string xmlMessage_SourceAndScheduleInfoUpdate = V3_PRSC_IN030102UV.SourceAndScheduleInfoUpdate(addJhfwHypbIn_SourceAndScheduleInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_SourceAndScheduleInfoUpdate);
            //Console.WriteLine();

            ////号源排班信息查询服务
            //string SourceAndScheduleInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"deptid\":\"1\",\"deptname\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sfzh\":\"1\",\"fsdzylx\":\"1\",\"fsdzymc\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\"}";
            //GetJhfwHypbListIn getJhfwHypbListIn_SourceAndScheduleInfoQuery = JsonConvert.DeserializeObject<GetJhfwHypbListIn>(SourceAndScheduleInfoQuery_Str);
            //string xmlMessage_SourceAndScheduleInfoQuery = V3_PRSC_IN100000UV.SourceAndScheduleInfoQuery(getJhfwHypbListIn_SourceAndScheduleInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_SourceAndScheduleInfoQuery);
            //Console.WriteLine();

            ////号源排班信息查询服务-响应
            //string SourceAndScheduleInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"fsdzylx\":\"1\",\"deptid\":\"1\",\"deptname\":\"1\",\"classid\":\"1\",\"classname\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sfzh\":\"1\",\"title\":\"1\",\"zydm\":\"1\",\"zyms\":\"1\",\"fsdzymc\":\"1\",\"fsdzyzs\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"zhs\":\"1\",\"syhs\":\"1\",\"pbzt\":\"1\",\"pb_empid\":\"1\",\"pb_empname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"fsdzylx\":\"1\",\"deptid\":\"1\",\"deptname\":\"1\",\"classid\":\"1\",\"classname\":\"1\",\"empid\":\"1\",\"empname\":\"1\",\"sfzh\":\"1\",\"title\":\"1\",\"zydm\":\"1\",\"zyms\":\"1\",\"fsdzymc\":\"1\",\"fsdzyzs\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"zhs\":\"1\",\"syhs\":\"1\",\"pbzt\":\"1\",\"pb_empid\":\"1\",\"pb_empname\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwHypbListOut getJhfwHypbListOut_SourceAndScheduleInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwHypbListOut>(SourceAndScheduleInfoQuery_Response_Str);
            //string xmlMessage_SourceAndScheduleInfoQuery_Response = V3_PRSC_IN100500UV.SourceAndScheduleInfoQuery_Response(getJhfwHypbListOut_SourceAndScheduleInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_SourceAndScheduleInfoQuery_Response);
            //Console.WriteLine();


            ////门诊预约状态信息新增服务
            //string OutPatientAppointStatusInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"pbid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"yyjzsj\":\"1\",\"deptid\":\"1\",\"classid\":\"1\",\"fsdzylx\":\"1\",\"empid\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"yyztdm\":\"1\",\"yyztmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwMzyyIn addJhfwMzyyIn_OutPatientAppointStatusInfoAdd = JsonConvert.DeserializeObject<AddJhfwMzyyIn>(OutPatientAppointStatusInfoAdd_Str);
            //string xmlMessage_OutPatientAppointStatusInfoAdd = V3_PRPA_IN410001UV_Mzyy.OutPatientAppointStatusInfoAdd(addJhfwMzyyIn_OutPatientAppointStatusInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientAppointStatusInfoAdd);
            //Console.WriteLine();

            ////门诊预约状态信息更新服务
            //string OutPatientAppointStatusInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"pbid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"yyjzsj\":\"1\",\"deptid\":\"1\",\"classid\":\"1\",\"fsdzylx\":\"1\",\"empid\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"yyztdm\":\"1\",\"yyztmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwMzyyIn addJhfwMzyyIn_OutPatientAppointStatusInfoUpdate = JsonConvert.DeserializeObject<AddJhfwMzyyIn>(OutPatientAppointStatusInfoUpdate_Str);
            //string xmlMessage_OutPatientAppointStatusInfoUpdate = V3_PRPA_IN410002UV_Mzyy.OutPatientAppointStatusInfoUpdate(addJhfwMzyyIn_OutPatientAppointStatusInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientAppointStatusInfoUpdate);
            //Console.WriteLine();

            ////门诊预约状态信息查询服务
            //string OutPatientAppointStatusInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"mrn\":\"1\",\"yyztdm\":\"1\",\"yyztmc\":\"1\"}";
            //GetJhfwMzyyListIn getJhfwMzyyListIn_OutPatientAppointStatusInfoQuery = JsonConvert.DeserializeObject<GetJhfwMzyyListIn>(OutPatientAppointStatusInfoQuery_Str);
            //string xmlMessage_OutPatientAppointStatusInfoQuery = V3_PRPA_IN900300UV_Mzyy.OutPatientAppointStatusInfoQuery(getJhfwMzyyListIn_OutPatientAppointStatusInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientAppointStatusInfoQuery);
            //Console.WriteLine();

            ////门诊预约状态信息查询服务-响应
            //string OutPatientAppointStatusInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"pbid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"yyjzsj\":\"1\",\"deptid\":\"1\",\"classid\":\"1\",\"fsdzylx\":\"1\",\"empid\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"yyztdm\":\"1\",\"yyztmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"pbid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"pcid\":\"1\",\"yyjzsj\":\"1\",\"deptid\":\"1\",\"classid\":\"1\",\"fsdzylx\":\"1\",\"empid\":\"1\",\"kssj\":\"1\",\"jssj\":\"1\",\"yyztdm\":\"1\",\"yyztmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwMzyyListOut getJhfwMzyyListOut_OutPatientAppointStatusInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwMzyyListOut>(OutPatientAppointStatusInfoQuery_Response_Str);
            //string xmlMessage_OutPatientAppointStatusInfoQuery_Response = V3_PRPA_IN900350UV_Mzyy.OutPatientAppointStatusInfoQuery_Response(getJhfwMzyyListOut_OutPatientAppointStatusInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OutPatientAppointStatusInfoQuery_Response);
            //Console.WriteLine();


            ////检查预约状态信息新增服务
            //string CheckAppointStatusInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"tmh\":\"1\",\"bbdm\":\"1\",\"yzid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"ksdm\":\"1\",\"ksmc\":\"1\",\"yyjcsj\":\"1\",\"yyxh\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"yyrgh\":\"1\",\"yyrxm\":\"1\",\"jcdd\":\"1\",\"zysx\":\"1\",\"remark\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJcyyIn addJhfwJcyyIn_CheckAppointStatusInfoAdd = JsonConvert.DeserializeObject<AddJhfwJcyyIn>(CheckAppointStatusInfoAdd_Str);
            //string xmlMessage_CheckAppointStatusInfoAdd = V3_PRSC_IN010101UV01_Jcyy.CheckAppointStatusInfoAdd(addJhfwJcyyIn_CheckAppointStatusInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppointStatusInfoAdd);
            //Console.WriteLine();

            ////检查预约状态信息更新服务
            //string CheckAppointStatusInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"tmh\":\"1\",\"bbdm\":\"1\",\"yzid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"ksdm\":\"1\",\"ksmc\":\"1\",\"yyjcsj\":\"1\",\"yyxh\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"yyrgh\":\"1\",\"yyrxm\":\"1\",\"jcdd\":\"1\",\"zysx\":\"1\",\"remark\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwJcyyIn addJhfwJcyyIn_CheckAppointStatusInfoUpdate = JsonConvert.DeserializeObject<AddJhfwJcyyIn>(CheckAppointStatusInfoUpdate_Str);
            //string xmlMessage_CheckAppointStatusInfoUpdate = V3_PRSC_IN010201UV01_Jcyy.CheckAppointStatusInfoUpdate(addJhfwJcyyIn_CheckAppointStatusInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppointStatusInfoUpdate);
            //Console.WriteLine();

            ////检查预约状态信息查询服务
            //string CheckAppointStatusInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"yyjcsj_low\":\"1\",\"yyjcsj_high\":\"1\"}";
            //GetJhfwJcyyListIn getJhfwJcyyListIn_CheckAppointStatusInfoQuery = JsonConvert.DeserializeObject<GetJhfwJcyyListIn>(CheckAppointStatusInfoQuery_Str);
            //string xmlMessage_CheckAppointStatusInfoQuery = V3_QUMT_IN020030UV01_Jcyy.CheckAppointStatusInfoQuery(getJhfwJcyyListIn_CheckAppointStatusInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppointStatusInfoQuery);
            //Console.WriteLine();

            ////检查预约状态信息查询服务-响应
            //string CheckAppointStatusInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"tmh\":\"1\",\"bbdm\":\"1\",\"yzid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"ksdm\":\"1\",\"ksmc\":\"1\",\"yyjcsj\":\"1\",\"yyxh\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"yyrgh\":\"1\",\"yyrxm\":\"1\",\"jcdd\":\"1\",\"zysx\":\"1\",\"remark\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"yyid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"tmh\":\"1\",\"bbdm\":\"1\",\"yzid\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"ksdm\":\"1\",\"ksmc\":\"1\",\"yyjcsj\":\"1\",\"yyxh\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"yyrgh\":\"1\",\"yyrxm\":\"1\",\"jcdd\":\"1\",\"zysx\":\"1\",\"remark\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwJcyyListOut getJhfwJcyyListOut_CheckAppointStatusInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwJcyyListOut>(CheckAppointStatusInfoQuery_Response_Str);
            //string xmlMessage_CheckAppointStatusInfoQuery_Response = V3_QUMT_IN020040UV01_Jcyy.CheckAppointStatusInfoQuery_Response(getJhfwJcyyListOut_CheckAppointStatusInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_CheckAppointStatusInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            //#region 第11部分：状态信息交互服务。
            ////手术排班信息新增服务
            //string OperationScheduleInfoAdd_Str = "{\"dotype\":\"ADD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"yysssj\":\"1\",\"zdysdm\":\"1\",\"zdysxm\":\"1\",\"zsdm\":\"1\",\"zsxm\":\"1\",\"ssj\":\"1\",\"yjsssc\":\"1\",\"yjssscdw\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSspbIn addJhfwSspbIn_OperationScheduleInfoAdd = JsonConvert.DeserializeObject<AddJhfwSspbIn>(OperationScheduleInfoAdd_Str);
            //string xmlMessage_OperationScheduleInfoAdd = V3_PRSC_IN010101UV01_Sspb.OperationScheduleInfoAdd(addJhfwSspbIn_OperationScheduleInfoAdd, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationScheduleInfoAdd);
            //Console.WriteLine();

            ////手术排班信息更新服务
            //string OperationScheduleInfoUpdate_Str = "{\"dotype\":\"MOD\",\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"yysssj\":\"1\",\"zdysdm\":\"1\",\"zdysxm\":\"1\",\"zsdm\":\"1\",\"zsxm\":\"1\",\"ssj\":\"1\",\"yjsssc\":\"1\",\"yjssscdw\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}";
            //AddJhfwSspbIn addJhfwSspbIn_OperationScheduleInfoUpdate = JsonConvert.DeserializeObject<AddJhfwSspbIn>(OperationScheduleInfoUpdate_Str);
            //string xmlMessage_OperationScheduleInfoUpdate = V3_PRSC_IN010201UV01_Sspb.OperationScheduleInfoUpdate(addJhfwSspbIn_OperationScheduleInfoUpdate, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationScheduleInfoUpdate);
            //Console.WriteLine();

            ////手术排班信息查询服务
            //string OperationScheduleInfoQuery_Str = "{\"page\":\"1\",\"percount\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"yysssj_low\":\"1\",\"yysssj_high\":\"1\"}";
            //GetJhfwSspbListIn getJhfwSspbListIn_OperationScheduleInfoQuery = JsonConvert.DeserializeObject<GetJhfwSspbListIn>(OperationScheduleInfoQuery_Str);
            //string xmlMessage_OperationScheduleInfoQuery = V3_QUMT_IN020030UV01_Sspb.OperationScheduleInfoQuery(getJhfwSspbListIn_OperationScheduleInfoQuery, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationScheduleInfoQuery);
            //Console.WriteLine();

            ////手术排班信息查询服务-响应
            //string OperationScheduleInfoQuery_Response_Str = "{\"data\":[{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"yysssj\":\"1\",\"zdysdm\":\"1\",\"zdysxm\":\"1\",\"zsdm\":\"1\",\"zsxm\":\"1\",\"ssj\":\"1\",\"yjsssc\":\"1\",\"yjssscdw\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"},{\"sjly\":\"1\",\"lyxt\":\"1\",\"hoscode\":\"1\",\"pbid\":\"1\",\"jzlsh\":\"1\",\"sqdh\":\"1\",\"mrn\":\"1\",\"pname\":\"1\",\"series\":\"1\",\"stay\":\"1\",\"yysssj\":\"1\",\"zdysdm\":\"1\",\"zdysxm\":\"1\",\"zsdm\":\"1\",\"zsxm\":\"1\",\"ssj\":\"1\",\"yjsssc\":\"1\",\"yjssscdw\":\"1\",\"zxksdm\":\"1\",\"zxksmc\":\"1\",\"sbdm\":\"1\",\"sbmc\":\"1\",\"useflag\":\"1\",\"in_empid\":\"1\",\"in_date\":\"1\",\"xg_empid\":\"1\",\"xgsj\":\"1\"}],\"subcode\":\"success\",\"submsg\":\"业务处理成功.\"}";
            //GetJhfwSspbListOut getJhfwSspbListOut_OperationScheduleInfoQuery_Response = JsonConvert.DeserializeObject<GetJhfwSspbListOut>(OperationScheduleInfoQuery_Response_Str);
            //string xmlMessage_OperationScheduleInfoQuery_Response = V3_QUMT_IN020040UV01_Sspb.OperationScheduleInfoQuery_Response(getJhfwSspbListOut_OperationScheduleInfoQuery_Response, id_extension, sender_name, receiver_name);
            //Console.WriteLine(xmlMessage_OperationScheduleInfoQuery_Response);
            //Console.WriteLine();
            //#endregion

            Console.ReadLine();
            Console.ReadKey();
        }
    }
}
